<?php 
namespace Common\Model;
use Think\Model\RelationModel;
class YgclPingjiaTeacherModel extends RelationModel{
	protected $_link = array(
			'user'=>array(
					'mapping_type'=>self::BELONGS_TO,
					'class_name'  =>'Users',
					'foreign_key'=>'uid',
					//'as_fields'=>'title:district',
			),
			'class'=>array(
					'mapping_type'=>self::BELONGS_TO,
					'class_name'  =>'YgclClass',
					'foreign_key'=>'cid',
					//'as_fields'=>'title:district',
			)
			
	);
}
?>